package com.zhong.oss.service;

import com.zhong.oss.adapter.StorageAdapter;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 文件处理器的适配器 （解决接口不匹配）
 */
@Service
public class FileService {

    private StorageAdapter storageAdapter;

    public FileService(StorageAdapter storageAdapter){
        this.storageAdapter = storageAdapter;
    }
    public List<String> getBucketAll() {
        return storageAdapter.getBucketAll();
    }

}
